<template>
  <ZMap ref="zMapRef" @init="init" />
</template>

<script setup>
import ZMap from 'src/components/zMap'
const zMapRef = ref();


onMounted(() => {
  //组件内部方法
  console.log(zMapRef.value.addMark);
})
function init(map) {
  //map实例
  console.log(map);
}

</script>

<style scoped lang="less">
@import 'index';
</style>
